<?php
$v_worktype_id = _replace_bad_char(trim($_REQUEST['txt_code'])) ;// nieuvv

$v_status = 1;
$v_filter = "";
$v_cate_id= 0;
if(_is_sqlserver()){
	$cmd = @mssql_init("ONEGATE_RecordtypeGetAll", $conn);
	@mssql_bind($cmd, "@p_filter", $v_filter, SQLVARCHAR); // tai sao truyen tham so nguoc??????????????????? nieuvv
	@mssql_bind($cmd, "@p_cate_id", $v_cate_id, SQLINT4);
	@mssql_bind($cmd, "@p_status", $v_status, SQLINT4);
	$result_all_recordtype = @mssql_execute($cmd);
	$arr_all_recordtype = _get_row_to_array($result_all_recordtype);
	$v_count_recordtype = count($arr_all_recordtype); // nieuvv 190508
	@mssql_free_result($result_all_recordtype);
}?>
